LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)

LOCAL_SRC_FILES:= \
sct/rtspclient/rtspclient.cpp \
sct/rtspclient/rtspclientinterface.cpp \
sct/rtspserver/rtspserver.cpp \
sct/rtspserver/h264videoservermediasubsession.cpp \
sct/rtspserver/h264videosource.cpp \
sct/rtspserver/h264streamsource.cpp \
sct/rtspserver/rtspserverinterface.cpp \
sct/rtspserver/aacsource.cpp \
sct/rtspserver/streamsource.cpp \
sct/rtspserver/aacstreamsource.cpp \
sct/rtspserver/aacservermediasubsession.cpp \
sct/rtspserver/amrsource.cpp \
sct/rtspserver/amrservermediasubsession.cpp \
sct/rtspserver/tssource.cpp \
sct/rtspserver/tsstreamsource.cpp \
sct/rtspserver/tsservermediasubsession.cpp \

#sct/rtspserver/string.cpp \
#sct/rtspserver/list.cpp \

LOCAL_C_INCLUDES := \
	$(LOCAL_PATH)/ \
	    $(NDK)/sources/cxx-stl/gnu-libstdc++/4.8/include/ \
    	$(NDK)/sources/cxx-stl/gnu-libstdc++/4.8/libs/armeabi-v7a/include/ \
	$(linphone-root-dir)/libsct/ \
	$(LOCAL_PATH)/lib/include/BasicUsageEnvironment \
	$(LOCAL_PATH)/lib/include/groupsock \
	$(LOCAL_PATH)/lib/include/liveMedia \
	$(LOCAL_PATH)/lib/include/UsageEnvironment  \
	#$(LOCAL_PATH)/wrapper/ \



LOCAL_SHARED_LIBRARIES := \
	libcutils \
	libutils \

LOCAL_MODULE:= librtsp
LOCAL_LDLIBS += -llog -lgnustl_shared

LOCAL_CFLAGS := -O2 -g -W -Wall -frtti
LOCAL_CPPFLAGS += -DXLOCALE_NOT_USED=1 -DNO_SSTREAM=1 -DNULL=0 -O2 -fexceptions  -DSCT_ANDROID -DSCT_TAG=' "sct" '

LOCAL_LDFLAGS +=  -L$(LOCAL_PATH)/lib/lib/\
-lliveMedia -lBasicUsageEnvironment -lgroupsock -lUsageEnvironment -lsct -L$(APP_PROJECT_PATH)/libs/armeabi-v7a/



include $(BUILD_SHARED_LIBRARY)












